<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<tpl> $NCharset </tpl>" />
<link href="<tpl> $template_dir </tpl>/member/css/layout.css" rel="stylesheet" type="text/css" />
<tpl>include file ='../head.config.html'</tpl>
</head><body><tpl>include file ='../header.html'</tpl>
<div id="container761">
<tpl>include file ='../../../js/validate/member_productcategory.manage.html'</tpl>
  <div class="own_member_main">
  <tpl>include file ='own_shop.menu.html'</tpl>
  <div class="member_right">
    <div class="shop_nav_top"><span>
	 <div class="new_main_left">
		<div class="new_main_left1">
	<h1 class="new_text">
	  <tpl> $langShopPBobyClass </tpl></h1>
<i></i>
	</div>
	<b></b>
	</div>
	<div id="own_main_rightop">	
	<caption>
      <tpl> $langShopPClassManageInfo </tpl>
	  <div class="anniu">
	  <span><a href="own_shopproduct.php?action=list&classid=0"><tpl> $langShopPLookNotBobyClass </tpl></a></span>
	   </div>
      </caption>
</div>
<div id="own_main_rightop_line" style="margin-top:-3px;">
	  <b class="b4"></b>
	  <b class="b3"></b>
	  <b class="b2"></b>
	  <b class="b1"></b>
	  </div>
	</span></div>
	<form name="form_modi_category" id="form_modi_category" method="post" action="own_shopproductcate.php?action=update">
    <table border="1" cellpadding="0" cellspacing="0" bordercolor="#DDE0E3" bgcolor="#FFFFFF" style="margin-top:10px">
      <tr>
	  	<td colspan="8" align="right"><input type="submit" class="new_anniu" value="<tpl> $langShopProCateSave </tpl>" /></td>
	  </tr>
	  <tr>
        <th align="center" valign="middle"><tpl> $langShopPClassName </tpl></th>
		<th align="center" valign="middle"><tpl> $langShopProCateParentClass </tpl></th>
		<th align="center" valign="middle"><tpl> $langShopProCateAddPic </tpl></th>
		<th align="center" valign="middle"><tpl> $langShopProCateAddChild </tpl></th>
		<th align="center" valign="middle"><tpl> $langShopProCateOpen </tpl></th>
        <th align="center" valign="middle"><tpl> $langCChangeOrder </tpl></th>
		<th align="center" valign="middle"><tpl> $langShopProCateDel </tpl></th>
        <th align="center" valign="middle"><tpl> $langShopPSeeProduct </tpl></th>
      </tr>
<tpl> if $shop_product_category_array[0].class_id neq '' </tpl>
      <tpl> section name=i loop=$shop_product_category_array </tpl>
	  	<input type="hidden" name="class_id[<tpl> $shop_product_category_array[i].class_id </tpl>]" value="<tpl> $shop_product_category_array[i].class_id </tpl>" />
        <tr>
			<td align="left" valign="middle">
			<input name="txtCategory[<tpl> $shop_product_category_array[i].class_id </tpl>]" type="text" class="new_input" maxlength="80" value="<tpl> $shop_product_category_array[i].class_name </tpl>"/></td>
			<td align="center" valign="middle">
				<select name="class_parent_id[<tpl> $shop_product_category_array[i].class_id </tpl>]">
					<option value="0"><tpl> $langShopProCateRootClass </tpl></option>
					<tpl> section name=loop loop=$sel_class </tpl>
						<tpl> if $shop_product_category_array[i].class_id neq $sel_class[loop].class_id </tpl>
						<option value="<tpl> $sel_class[loop].class_id </tpl>"><tpl> $sel_class[loop].class_name </tpl></option>
						<tpl> /if </tpl>
					<tpl> /section </tpl>
				</select>
			</td>
			<td align="center" valign="middle"><input type="text" name="class_pic[<tpl> $shop_product_category_array[i].class_id </tpl>]" value="<tpl> $shop_product_category_array[i].class_pic </tpl>" class="new_input" />
				<tpl> if $shop_product_category_array[i].class_pic neq '' </tpl>
					<a title="<tpl> $langShopProCateViewPic </tpl>" href="<tpl> $shop_product_category_array[i].class_pic </tpl>" target="_blank"><img src="<tpl> $template_dir </tpl>/member/images/see1.gif" alt="<tpl> $langShopProCateViewPic </tpl>" title="<tpl> $langShopProCateViewPic </tpl>" /></a>
				<tpl> /if </tpl>
			</td>
			<td align="center" valign="middle">
				<tpl> if $shop_product_category_array[i].class_parent_id eq '0' </tpl>
				<a href="javascript:;" onclick="$('#class_parent_id').attr('value','<tpl> $shop_product_category_array[i].class_id </tpl>');$('#txtCategory').focus();"><img src="<tpl> $template_dir </tpl>/member/images/append.gif" alt="<tpl> $langShopProCateAddChild </tpl>" title="<tpl> $langShopProCateAddChild </tpl>" /></a>
				<tpl> /if </tpl>
			</td>
			<td align="center" valign="middle">
				<tpl> if $shop_product_category_array[i].class_parent_id eq '0' </tpl>
				<input type="checkbox" <tpl> if $shop_product_category_array[i].class_if_open eq '0' </tpl>checked="checked"<tpl> /if </tpl> name="class_if_open[<tpl> $shop_product_category_array[i].class_id </tpl>]" value="0" title="<tpl> $langShopProCateOpen </tpl>" />
				<tpl> /if </tpl>
			</td>
			<td align="center" valign="middle"><input name="txtSort[<tpl> $shop_product_category_array[i].class_id </tpl>]" type="text" class="new_input" style="width:30px" value="<tpl> $shop_product_category_array[i].class_sort </tpl>" size="5" maxlength="5" /></td>
			<td align="center" valign="middle">
				<!--注释：按钮<input type="button" class="new_anniu" name="Submit2" value="<tpl> $langCdele </tpl>" onclick="javascript:if(confirm('<tpl> $langShopProCateConfirmDel </tpl>')){location.href='own_shopproductcate.php?action=del&classid=<tpl> $shop_product_category_array[i].class_id </tpl>';}else{return false;}" />-->
				<img src="<tpl> $template_dir </tpl>/member/images/del.gif" style=" cursor:pointer;" alt="<tpl> $langCdele </tpl>" title="<tpl> $langCdele </tpl>" onclick="javascript:if(confirm('<tpl> $langShopProCateConfirmDel </tpl>')){location.href='own_shopproductcate.php?action=del&classid=<tpl> $shop_product_category_array[i].class_id </tpl>';}else{return false;}" />
			</td>
			<td align="center" valign="middle" ><a href="own_shopproduct.php?action=list&classid=<tpl> $shop_product_category_array[i].class_id </tpl>" target="_blank"><img src="<tpl> $template_dir </tpl>/member/images/list-1.gif" alt="<tpl> $langShopPBabyList </tpl>" title="<tpl> $langShopPBabyList </tpl>" /></a></td>
        </tr>
		<tpl> if $shop_product_category_array[i].child neq '' </tpl>
			<tpl> foreach from=$shop_product_category_array[i].child item=one </tpl>
				<input type="hidden" name="class_id[<tpl> $one.class_id </tpl>]" value="<tpl> $one.class_id </tpl>" />
				<tr>
					<td align="left" valign="middle">
					|--<input name="txtCategory[<tpl> $one.class_id </tpl>]" type="text" class="new_input" maxlength="80" value="<tpl> $one.class_name </tpl>"/></td>
					<td align="center" valign="middle">
						<select name="class_parent_id[<tpl> $one.class_id </tpl>]">
							<option value="0"><tpl> $langShopProCateRootClass </tpl></option>
							<tpl> section name=loop loop=$sel_class </tpl>
								<option <tpl> if $one.class_parent_id eq $sel_class[loop].class_id </tpl>selected="selected"<tpl> /if </tpl> value="<tpl> $sel_class[loop].class_id </tpl>"><tpl> $sel_class[loop].class_name </tpl></option>
							<tpl> /section </tpl>
						</select>
					</td>
					<td align="center" valign="middle"><input type="text" name="class_pic[<tpl> $one.class_id </tpl>]" value="<tpl> $one.class_pic </tpl>" class="new_input" />
						<tpl> if $one.class_pic neq '' </tpl>
							<a title="<tpl> $langShopProCateViewPic </tpl>" href="<tpl> $one.class_pic </tpl>" target="_blank"><img src="<tpl> $template_dir </tpl>/member/images/see1.gif" alt="<tpl> $langShopProCateViewPic </tpl>" title="<tpl> $langShopProCateViewPic </tpl>" /></a>
						<tpl> /if </tpl>
					</td>
					<td align="center" valign="middle"></td>
					<td align="center" valign="middle"></td>
					<td align="center" valign="middle"><input name="txtSort[<tpl> $one.class_id </tpl>]" type="text" class="new_input" style="width:30px" value="<tpl> $one.class_sort </tpl>" size="5" maxlength="5" /></td>
					<td align="center" valign="middle">
						<input type="button" class="new_anniu" name="Submit2" value="<tpl> $langCdele </tpl>" onclick="if(confirm('<tpl> $langShopProCateConfirmDel </tpl>')){location.href='own_shopproductcate.php?action=del&classid=<tpl> $one.class_id </tpl>';}else{return false;}" />
					</td>
					<td align="center" valign="middle" ><a href="own_shopproduct.php?action=list&classid=<tpl> $one.class_id </tpl>" target="_blank"><img src="<tpl> $template_dir </tpl>/member/images/list-1.gif" alt="<tpl> $langShopProCateViewPic </tpl>" title="<tpl> $langShopProCateViewPic </tpl>" /></a></td>
				</tr>
			<tpl> /foreach </tpl>
		<tpl> /if </tpl>
      <tpl> /section </tpl>
	  <tr>
	  	<td colspan="8" align="right"><input type="submit" class="new_anniu" value="<tpl> $langShopProCateSave </tpl>" /></td>
	  </tr>
<tpl> else </tpl> 	  
	  <tr>
	  	<td colspan="8" align="center"><tpl> $langShopProCateNothing </tpl></td>
	  </tr>
<tpl> /if </tpl>
    </table>
	</form>
	<table cellpadding="0" cellspacing="0" ><tr><td style="height:10px;"></td></tr></table>
    <form action="own_shopproductcate.php?action=save" method="post" name="formaddcategory" id="formaddcategory">
	<table  cellpadding="0" cellspacing="0">
		<tr >
			<td class="blue_border">
				<tpl> $langShopProCateAdd </tpl><br />
			</td>
		</tr>
		<tr>
			<td>
			<table class="blue_border_1" cellpadding="1" cellspacing="1">
			  <tr><td  valign="middle" >
	<tpl> $langShopPNewClassName </tpl></td>
		
		 
	  
	  
	  <td  valign="middle" ><tpl> $langShopProCateParentClass </tpl></td>
	   <td  valign="middle" ><tpl> $langShopProCatePic </tpl></td>
	    <td class="blue_right" valign="middle" ><tpl> $langCSort </tpl></td>
		
	</tr>
	
		<tr>
			<td  valign="middle" >
      			<input class="blue_input" name="txtCategory" type="text" id="txtCategory" class="new_input" maxlength="80" />
				<label style="display:none; color:#FF0000" for="txtCategory" class="wrong" metaDone="true" generated="true"></label>
			</td>
					<td  valign="middle" ><select name="class_parent_id" id="class_parent_id">
			<option value="0"><tpl> $langShopProCateRootClass </tpl></option>
			<tpl> section name=loop loop=$sel_class </tpl>
				<option value="<tpl> $sel_class[loop].class_id </tpl>"><tpl> $sel_class[loop].class_name </tpl></option>
			<tpl> /section </tpl>
		</select>
		</td>
		 <td  valign="middle" > <input class="blue_input"  name="class_pic" type="text" id="class_pic" class="new_input" maxlength="80" /></td>
		  <td class="blue_right"  valign="middle" ><input name="txtSort" type="text" id="txtSort"class="new_input"style="width:30px" value="0" size="5" maxlength="5" />
		  <label style="display:none" for="txtSort" class="wrong" metaDone="true" generated="true"></label></td>
	  		
	  
	  </tr>
	 
</table>
	  </td><tr><td class="blue_top_border">
      <input class="blue_input"  type="submit" name="Submit" value="<tpl> $langShopPAddClass </tpl>" class="new_input" />
	  </td></tr>
	  </table>
    </form>
  </div>
</div>  <tpl> include file ='../../../html/footer.html' </tpl> 
  </div>
</body>
</html>
